package com.example.framwork.exception;


public class BusinessLogicException extends RuntimeException {

    private static final long serialVersionUID = -6915496995646954673L;

    private Integer code;
    private Object[] objects;

    public BusinessLogicException(String message) {
        super(message);
    }

    public BusinessLogicException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessLogicException(String message, Object... objects) {
        super(message);
        this.objects = objects;
    }

    public BusinessLogicException(Integer code, String msg, Object... objects) {
        super(msg);
        this.code = code;
        this.objects = objects;
    }


    public Integer getCode() {
        return code;
    }

    public Object[] getObjects() {
        return objects;
    }

    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }

}
